import request from '@/utils/request'

// 查询列表
export function listInjury(query) {
  return request({
    url: '/aqsc/injury/list',
    method: 'get',
    params: query
  })
}
// 查询详细
export function getInjury(injuryId) {
  return request({
    url: '/aqsc/injury/' + injuryId,
    method: 'get'
  })
}
//查询所属机构
export function getDeptList() {
  return request({
    url: '/system/user/deptTree',
    method: 'get'
  })
}

// 新增
export function addInjury(data) {
  return request({
    url: '/aqsc/injury',
    method: 'post',
    data: data
  })
}
// 修改
export function updateInjury(data) {
  return request({
    url: '/aqsc/injury',
    method: 'put',
    data: data
  })
}
// 删除
export function delInjury(injuryId) {
  return request({
    url: '/aqsc/injury/' +injuryId,
    method: 'delete'
  })
}

